package com.xilihui.xlh.business.entities;

import com.google.gson.annotations.SerializedName;
import com.xilihui.xlh.core.app.BaseEntity;

import java.util.List;

/**
 * Created by Administrator on 2018/8/17.
 */

public class AddOrderEntity extends BaseEntity{


    /**
     * payment : [{"code":"alipay","name":"PC端支付宝","icon":"logo.jpg"},{"code":"weixin","name":"微信支付","icon":"logo.jpg"}]
     * order_info : {"price":"70500","order_sn":"201808280910292635512","desc":"千锐集-领货"}
     * payment_params : {"alipay":"app_id=2018061160416012&biz_content=%7B%22productCode%22%3A%22QUICK_WAP_WAY%22%2C%22subject%22%3A%22%E5%8D%83%E9%94%90%E9%9B%86%E5%8A%A9%E6%89%8B-%E9%A2%86%E8%B4%A7%22%2C%22out_trade_no%22%3A%22201808280910292635512%22%2C%22total_amount%22%3A70500%2C%22timeout_express%22%3A%221m%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2Fwww.qianruiji.net%2Fapi%2FPay%2Falipay_notifyUrl&sign_type=RSA2×tamp=2018-08-28+09%3A10%3A30&version=1.0&sign=PDAmJgF6iKCO6Emm3Jc8TaHcqExXltTn9raDmtuAQEi%2BtilxUYklWx%2Bb6nIZsr8UN6SERj6sUYDwacDn7Jm0GKmIphBmsiY5fqtemwOkxUaE5%2FwSerYbBxjdQ4%2FKXDGrKqrq%2FxFWAafZ7PoCJthrdeulUfgm0f6pJG1Yg%2BBeP%2FLU3BXfLop8EFTZWIhTMFic5M%2FWCHVh0KUYNxZ6Te1p38h7bCtDdTHEYKur6DDcc1BoUth9mkTfU6MYou4H3lwdG60SH%2FQExiY6S4bUgTrkODzg%2Fm43Wh4B7xebD3eKXwkacXxiTNJFZZcsCz47kFgPf1LsLhApCYNadq%2FvL7Pb4Q%3D%3D","weixin":{"appid":"wx086831d3499ea9c2","noncestr":"BjWHsDrxNyHrM3APGJZAxy6q1CJSZySV","package":"Sign=WXPay","partnerid":"1508468411","prepayid":"wx280908412361138d6cf29fce3519061618","timestamp":"1535418630","sign":"BC6B7A270E74AFF2AA3A9F13F480B8B7"}}
     */

    private OrderInfoBean order_info;
    private PaymentParamsBean payment_params;
    private List<PaymentBean> payment;

    public OrderInfoBean getOrder_info() {
        return order_info;
    }

    public void setOrder_info(OrderInfoBean order_info) {
        this.order_info = order_info;
    }

    public PaymentParamsBean getPayment_params() {
        return payment_params;
    }

    public void setPayment_params(PaymentParamsBean payment_params) {
        this.payment_params = payment_params;
    }

    public List<PaymentBean> getPayment() {
        return payment;
    }

    public void setPayment(List<PaymentBean> payment) {
        this.payment = payment;
    }

    public static class OrderInfoBean {
        /**
         * price : 70500
         * order_sn : 201808280910292635512
         * desc : 千锐集-领货
         */

        private String price;
        private String order_sn;
        private String desc;

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getOrder_sn() {
            return order_sn;
        }

        public void setOrder_sn(String order_sn) {
            this.order_sn = order_sn;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    public static class PaymentParamsBean {
        /**
         * alipay : app_id=2018061160416012&biz_content=%7B%22productCode%22%3A%22QUICK_WAP_WAY%22%2C%22subject%22%3A%22%E5%8D%83%E9%94%90%E9%9B%86%E5%8A%A9%E6%89%8B-%E9%A2%86%E8%B4%A7%22%2C%22out_trade_no%22%3A%22201808280910292635512%22%2C%22total_amount%22%3A70500%2C%22timeout_express%22%3A%221m%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=http%3A%2F%2Fwww.qianruiji.net%2Fapi%2FPay%2Falipay_notifyUrl&sign_type=RSA2×tamp=2018-08-28+09%3A10%3A30&version=1.0&sign=PDAmJgF6iKCO6Emm3Jc8TaHcqExXltTn9raDmtuAQEi%2BtilxUYklWx%2Bb6nIZsr8UN6SERj6sUYDwacDn7Jm0GKmIphBmsiY5fqtemwOkxUaE5%2FwSerYbBxjdQ4%2FKXDGrKqrq%2FxFWAafZ7PoCJthrdeulUfgm0f6pJG1Yg%2BBeP%2FLU3BXfLop8EFTZWIhTMFic5M%2FWCHVh0KUYNxZ6Te1p38h7bCtDdTHEYKur6DDcc1BoUth9mkTfU6MYou4H3lwdG60SH%2FQExiY6S4bUgTrkODzg%2Fm43Wh4B7xebD3eKXwkacXxiTNJFZZcsCz47kFgPf1LsLhApCYNadq%2FvL7Pb4Q%3D%3D
         * weixin : {"appid":"wx086831d3499ea9c2","noncestr":"BjWHsDrxNyHrM3APGJZAxy6q1CJSZySV","package":"Sign=WXPay","partnerid":"1508468411","prepayid":"wx280908412361138d6cf29fce3519061618","timestamp":"1535418630","sign":"BC6B7A270E74AFF2AA3A9F13F480B8B7"}
         */

        private String alipay;
        private WeixinBean weixin;

        public String getAlipay() {
            return alipay;
        }

        public void setAlipay(String alipay) {
            this.alipay = alipay;
        }

        public WeixinBean getWeixin() {
            return weixin;
        }

        public void setWeixin(WeixinBean weixin) {
            this.weixin = weixin;
        }

        public static class WeixinBean {
            /**
             * appid : wx086831d3499ea9c2
             * noncestr : BjWHsDrxNyHrM3APGJZAxy6q1CJSZySV
             * package : Sign=WXPay
             * partnerid : 1508468411
             * prepayid : wx280908412361138d6cf29fce3519061618
             * timestamp : 1535418630
             * sign : BC6B7A270E74AFF2AA3A9F13F480B8B7
             */

            private String appid;
            private String noncestr;
            @SerializedName("package")
            private String packageX;
            private String partnerid;
            private String prepayid;
            private String timestamp;
            private String sign;

            public String getAppid() {
                return appid;
            }

            public void setAppid(String appid) {
                this.appid = appid;
            }

            public String getNoncestr() {
                return noncestr;
            }

            public void setNoncestr(String noncestr) {
                this.noncestr = noncestr;
            }

            public String getPackageX() {
                return packageX;
            }

            public void setPackageX(String packageX) {
                this.packageX = packageX;
            }

            public String getPartnerid() {
                return partnerid;
            }

            public void setPartnerid(String partnerid) {
                this.partnerid = partnerid;
            }

            public String getPrepayid() {
                return prepayid;
            }

            public void setPrepayid(String prepayid) {
                this.prepayid = prepayid;
            }

            public String getTimestamp() {
                return timestamp;
            }

            public void setTimestamp(String timestamp) {
                this.timestamp = timestamp;
            }

            public String getSign() {
                return sign;
            }

            public void setSign(String sign) {
                this.sign = sign;
            }
        }
    }

    public static class PaymentBean {
        /**
         * code : alipay
         * name : PC端支付宝
         * icon : logo.jpg
         */

        private String code;
        private String name;
        private String icon;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }
    }
}
